package com.khyr.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.khyr.Vo.MedicinesVo;
import com.khyr.entity.StockMedicines;
import com.khyr.vo.R;

import java.util.List;

/**
 * @InterfaceName: MedicinesService
 * @author: Zyl
 * @date: 2025/3/12 21:54
 * @Version: 1.0
 * @description:
 */

public interface MedicinesService {
    R<Page<StockMedicines>> findMedicines(MedicinesVo data);

    R addMedicines(MedicinesVo data);

    R updateMedicines(MedicinesVo data);

    R getMedicinesById(Integer medicinesId);

    R deleteMedicinesByIds(List<Integer> medicinesIds);

    R<List<StockMedicines>> selectAllMedicines();

    R adjustMedicinesStock(Integer medicinesId, Integer medicinesStockNum);

    R reduce(String medicinesName, Integer medicinesStockNum);

    R add(Long medicinesId, Integer medicinesStockNum);
}
